<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>
</head>
<body>
    <div id="app">
        <cpn>
            <button>234</button>
            <i>我是i标签</i>
            <span>我是span标签</span>
        </cpn>
        <cpn>
            <i>我是i标签</i>
        </cpn>
        <cpn>
            <span>我是span标签</span>
        </cpn>
        <cpn>
        </cpn>
        <cpn></cpn>
        <cpn></cpn>
        <cpn></cpn>
        <cpn></cpn>
    </div>
    <template id="cpn">
        <div>
            <div>我是cpn</div>
            <div>哈哈哈</div>
            <!-- <button>点击</button> -->
            <slot>
                <button>点击</button>
            </slot>
            <p></p>

        </div>
    </template>
    <script>
        // 1.slot的使用
        // 2.slot的默认值
        // 3.如果我们有多个值同时放到组件中会替换插槽里所有的东西
    const app = new Vue({
        el: '#app',
        data: {},
        methods: {},
        components: {
            cpn: {
                template: '#cpn'
            }
        }
    })
    </script>
</body>
</html>